.front-notice {
    padding: 5px 20px;
    color: #333;
    font-size: 12px
}
.front-header {
    margin: 0 auto;
    display: flex;
    height: 60px;
    line-height: 60px;
    background-color: #578bba;
}
.front-header-left {
    width: 350px;
    display: flex;
    align-items: center;
    padding-left: 30px;
}
.front-header-left img, .front-header-dropdown img {
    width: 40px;
    height: 40px;
    border-radius: 50%
}
.front-header-left .title {
    flex: 1;
    color: #fff;
    cursor: pointer;
    margin-left: 10px;
    font-size: 20px;
    font-weight: bold;
}
.front-header-center {
    flex: 1;
}
.front-header-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* 防止换行 */
    min-width: 300px;
    justify-content: flex-end;
}

.mode-toggle-btn {
  margin-right: 15px !important;
  white-space: nowrap; /* 保持按钮文字不换行 */
}

.auth-buttons {
  display: flex;
  gap: 10px; /* 按钮间距 */
}

/* 老年人模式适配 */
/* 修复老年人模式样式 */
.elder-mode {
  .front-header-right {
    min-width: 400px !important;
  }
  /* 修复全局样式 */
  /* 修改老年人模式作用域为html标签 */
  html.elder-mode {
    font-size: 30px !important;
    line-height: 1.8 !important;
    
    /* 增强全局组件样式 */
    .el-button,
    .el-menu-item,
    .el-dropdown-menu__item {
      font-size: 1.2em !important;
      line-height: 1.8 !important;
    }

    /* 关怀模式全局样式增强 */
    .elder-mode {
      font-size: 18px !important;
      line-height: 1.6 !important;
      
      .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
      }

      .nav-item, .el-button, .el-menu-item {
        padding: 12px 24px !important;
        min-height: 48px;
      }

      .card {
        margin: 15px 0;
        padding: 20px !important;
        border-radius: 8px;
      }
    }
  
    /* 修复导航菜单高度 */
    .el-menu--horizontal {
      height: auto !important;
      .el-menu-item {
        height: 60px !important;
        display: flex !important;
        align-items: center;
      }
    }
  
    /* 覆盖其他组件样式 */
    .front-notice,
    .front-header-dropdown,
    .el-dropdown-menu {
      font-size: 1.1em !important;
    }
  }
  .el-menu-item {
    font-size: 1.1em !important;
    padding: 0 28px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }
}
.front-header-dropdown {
    display: flex;
    align-items: center;
    justify-content: right;
    color: #fff;
    cursor: pointer;
}
.el-dropdown-menu {
    text-align: center !important;
}
 
/*页面具体样式自定义*/
.el-menu {
    background-color: #578bba;
}
.el-menu-item {
    color: #333 !important;
}
.el-menu-item.is-active {
    background-color: #1d7bc9 !important;
    color: white !important;
}
.el-menu-item:not(.is-active):hover {
    background-color: #578bba !important;
    color: white !important;
}

.main-content {
    width: 70%;
    margin: 10px auto;
}
.main-body{
    min-height: calc(100vh - 216px);
}
 
/* ElementUI 样式覆盖 */
.el-menu.el-menu--horizontal {
    border: none !important;
    height: 59px;
}
.el-menu-item {
    color: #333 !important;
}
.el-menu-item.is-active {
    background-color: #1d7bc9 !important;
    color: white !important;
}
.el-menu-item:not(.is-active):hover {
    background-color: #578bba !important;
    color: white !important;
}
/* 移除所有.elder-mode开头的样式块 */
/* 保留以下核心样式修正 */
.el-menu--horizontal.el-menu {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.front-header-center {
  height: 100%;
  display: flex !important;
  align-items: center;
}

.front-header-nav {
  height: 100%;
  line-height: normal !important;
}
/* 添加以下样式覆盖element-ui默认样式 */
.el-menu--horizontal {
  border-bottom: none !important;
  padding-left: 0 !important;
}
.el-menu-item {
  padding: 0 15px !important;
  margin: 0 !important;
}
/* 添加全局布局保护 */
.elder-mode {
  .main-content,
  .el-row,
  .el-col {
    transform: translateZ(0); /* 触发GPU加速 */
  }
  
  /* 修复卡片布局 */
  .el-card {
    min-height: 1px; /* 清除高度塌陷 */
    overflow: visible !important;
  }

  /* 增强弹性容器 */
  .flex-container {
    flex-wrap: wrap;
    gap: 1.5em;
  }
}

/* 保留核心导航修正 */
.el-menu--horizontal.el-menu {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}
.front-header-center {
  height: 100%;
  display: flex !important;
  align-items: center;
}

.front-header-nav {
  height: 100%;
  line-height: normal !important;
}
/* 添加以下样式覆盖element-ui默认样式 */
.el-menu--horizontal {
  border-bottom: none !important;
  padding-left: 0 !important;
}
.el-menu-item {
  padding: 0 15px !important;
  margin: 0 !important;
}
  